<!DOCTYPE html>
<html>
<head>
    {include file="public/header" /}
    <style>
        .layui-card {
            border: 1px solid #f2f2f2;
            border-radius: 5px;
        }

        .icon {
            margin-right: 10px;
            color: #1aa094;
        }

        .icon-cray {
            color: #ffb800 !important;
        }

        .icon-blue {
            color: #1e9fff !important;
        }

        .icon-tip {
            color: #ff5722 !important;
        }

        .layuimini-qiuck-module {
            text-align: center;
            margin-top: 10px
        }

        .layuimini-qiuck-module a i {
            display: inline-block;
            width: 100%;
            height: 60px;
            line-height: 60px;
            text-align: center;
            border-radius: 2px;
            font-size: 30px;
            background-color: #F8F8F8;
            color: #333;
            transition: all .3s;
            -webkit-transition: all .3s;
        }

        .layuimini-qiuck-module a cite {
            position: relative;
            top: 2px;
            display: block;
            color: #666;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            font-size: 14px;
        }

        .welcome-module {
            width: 100%;
        }

        .panel {
            background-color: #fff;
            border: 1px solid transparent;
            border-radius: 3px;
            -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
            box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
            text-align: center;
        }

        .panel-body {
            padding: 10px
        }

        .panel-title {
            margin-top: 0;
            margin-bottom: 0;
            font-size: 12px;
            color: inherit
        }

        .label {
            display: inline;
            padding: .2em .6em .3em;
            font-size: 75%;
            font-weight: 700;
            line-height: 1;
            color: #fff;
            text-align: center;
            white-space: nowrap;
            vertical-align: baseline;
            border-radius: .25em;
            margin-top: .3em;
        }

        .layui-red {
            color: red
        }

        .main_btn > p {
            height: 40px;
        }

        .layui-bg-number {
            background-color: #F8F8F8;
        }

        .layuimini-notice:hover {
            background: #f6f6f6;
        }

        .layuimini-notice {
            padding: 7px 16px;
            clear: both;
            font-size: 12px !important;
            cursor: pointer;
            position: relative;
            transition: background 0.2s ease-in-out;
        }

        .layuimini-notice-title, .layuimini-notice-label {
            padding-right: 70px !important;
            text-overflow: ellipsis !important;
            overflow: hidden !important;
            white-space: nowrap !important;
        }

        .layuimini-notice-title {
            line-height: 28px;
            font-size: 14px;
        }

        .layuimini-notice-extra {
            position: absolute;
            top: 50%;
            margin-top: -8px;
            right: 16px;
            display: inline-block;
            height: 16px;
            color: #999;
        }

        .no-margins {
            color: #00a2d4;
        }

        .layui-col-xs2 {
            width: 14%;
            cursor: pointer;
        }

        .width2 {
            width: 16%;
            cursor: pointer;
            margin-right: 0.5%;
        }

        .width20 {
            width: 20%;
            cursor: pointer;
        }
        .layui-col-space10 > * {
            padding: 20px;
        }
    </style>
    <style>
        .prizeconfirm .layui-layer-btn {
            height: 50%;
            display: flex;
            justify-content: space-evenly;
            align-items: center;
        }

        .prizeconfirm .layui-layer-btn .layui-layer-btn0 {
            border: 1px solid #1E9FFF;
            background-color: #1E9FFF;
            color: #fff;
            border-radius: 2px;
            /*width: 20%;*/
        }
        .prizeconfirm .layui-layer-btn .layui-layer-btn1 {
            border: 1px solid #1E9FFF;
            background-color: #1E9FFF;
            color: #fff;
            border-radius: 2px;
            /*width: 20%;*/
        }
        .prizeconfirm .layui-layer-btn .layui-layer-btn2 {
            border: 1px solid #1E9FFF;
            background-color: #1E9FFF;
            color: #fff;
            border-radius: 2px;
            /*width: 20%;*/
        }

        .prizeconfirm .layui-layer-content {
            display: none;
        }
    </style>
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-row layui-col-space15">
                    <!--平台数据-->
                    <div class="layui-col-md12">
                        <div class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-warning icon"></i>平台数据</div>
                            <div class="layui-card-body">
                                <div class="welcome-module">
                                    <div class="layui-row layui-col-space10">
                                        <div class="layui-col-xs2 width2" onclick="dataCenter('意见反馈','feedback')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>意见反馈</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$feedback}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs2 width2" onclick="dataCenter('交易审核','tradAudit')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>交易审核</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$tradAudit}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs2 width2" onclick="dataCenter('玩家投诉','complaint')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>玩家投诉</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$complaint}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs2 width2" onclick="dataCenter('合伙人申请','partner')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>合伙人申请</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$partner}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs2 width2" onclick="dataCenter('当前在线人数','onlinePeople')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>当前在线人数</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$onlinePeopleNum}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs2 width2" onclick="dataCenter('日下载量','downloadInfo')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>日下载量</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$downloadNum}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--玩家数据-->
                    <div class="layui-col-md12">
                        <div class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-warning icon"></i>玩家数据</div>
                            <div class="layui-card-body">
                                <div class="welcome-module">
                                    <div class="layui-row layui-col-space10">
                                        <div class="layui-col-xs2 width2" onclick="dataCenter('总玩家','memberNum')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>总玩家</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$memberNum}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs2 width2" onclick="dataCenter('今日新增用户','memberNewTodayNum')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>今日新增用户</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$memberNewTodayNum}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs2 width2" onclick="dataCenter('已退出玩家','memberExitedNum')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>已退出玩家</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$memberExitedNum}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs2 width2">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>性别分析(男 ：女)</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">
                                                            <!--onclick="dataCenter('玩家：男','men')"-->
                                                            <span>{$sexInfo.men}</span>
                                                            &nbsp;&nbsp;&nbsp;：
                                                            <!--onclick="dataCenter('玩家：女','women')"-->
                                                            <span>{$sexInfo.women}</span>
                                                        </h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs2 width2" onclick="dataCenter('团队列表','team')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>团队数量</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$teamNum}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs2 width2" onclick="dataCenter('玩家数据分析','playerData')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>玩家数据分析</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins"> &nbsp;</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--资产数据-->
                    <div class="layui-col-md12">
                        <div class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-warning icon"></i>资产数据</div>
                            <div class="layui-card-body">
                                <div class="welcome-module">
                                    <div class="layui-row layui-col-space10">
                                        <div class="layui-col-xs2" onclick="dataCenter('当前生意总数','currentBusiness')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>当前生意总数</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$currentBusinessNum}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs2" onclick="dataCenter('玩家收益','playerIncome')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>今日玩家总收益</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$playerRevenueTodayNum}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs2" onclick="dataCenter('当前金币总量','goldNum')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>当前金币总量</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$goldNum}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs2" onclick="dataCenter('今日金币计划用量','planGoldNum')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>今日金币计划用量</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$planGoldNum}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs2" onclick="dataCenter('当前积分总量','integralNum')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>当前积分总量</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$integralNum}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs2" onclick="dataCenter('恢复材料使用情况分析','recoveredMaterialsNum')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>恢复材料总数</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$recoveredMaterialsNum}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs2">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>红宝石总数</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$rubyNum}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--交易数据-->
                    <div class="layui-col-md12">
                        <div class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-warning icon"></i>交易数据</div>
                            <div class="layui-card-body">
                                <div class="welcome-module">
                                    <div class="layui-row layui-col-space10">
                                        <div class="layui-col-xs2 width20" onclick="dataCenter('历史交易-K线统计','historicalTransactions')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>今日交易成功数</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$todayTransactionSuccessNum}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs2 width20" onclick="dataCenter('历史交易-K线统计','historicalTransactions')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>昨日交易成功数</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$yesterdayTransactionSuccessNum}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs2 width20" onclick="dataCenter('待匹配数据分析','proportionToBeSold')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>待匹配数据分析</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$proportionToBeSold}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs2 width20" onclick="dataCenter('赠送金币数量','giveGoldNum')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>赠送金币数量</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$giveGoldNum}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs2 width20" onclick="dataCenter('赠送积分数量','giveIntegralNum')">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h2>赠送积分数量</h2>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h2 class="no-margins">{$giveIntegralNum}</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
<script>
    layui.use(['layer'], function () {
        var $ = layui.jquery,
            layer = layui.layer;
    });
</script>

<script>
    function dataCenter(title, type) {
        var url = '';
        if (type == 'feedback') {
            url = '/admin/PlatformData/feedback?action=view'
        } else if (type == 'tradAudit') {
            url = '/admin/PlatformData/tradAudit?action=view'
        } else if (type == 'complaint') {
            url = '/admin/PlatformData/complaint?action=view'
        } else if (type == 'partner') {
            url = '/admin/PlatformData/partner?action=view'
        } else if (type == 'memberNum') {
            url = '/admin/Member/index?action=view'
        } else if (type == 'memberNewTodayNum') {
            url = '/admin/Member/index?action=view&mark=memberNewTodayNum'
        } else if (type == 'memberExitedNum') {
            url = '/admin/Member/index?action=view&mark=memberExitedNum'
        } else if (type == 'men') {
            url = '/admin/Member/index?action=view&mark=men'
        } else if (type == 'women') {
            url = '/admin/Member/index?action=view&mark=women'
        }else if (type == 'team') {
            layer.open({
                type: 1,
                skin:'prizeconfirm',
                content: false,
                area: ['30%', '20%'],
                maxWidth: '200px',
                shadeClose: true,
                btn: ['团队人数排行', '团队收益排行', '团队列表'],
                btn1: function (index, layero) {
                    layer.close(index);
                    jumpUrl('团队人数排行', '/admin/Team/index?mark=peopleRanking');
                    return false
                },
                btn2: function (index, layero) {
                    layer.close(index);
                    jumpUrl('团队收益排行', '/admin/Team/index?mark=revenueRanking');
                    return false
                },
                btn3: function (index, layero) {
                    layer.close(index);
                    jumpUrl('团队列表', '/admin/Team/index');
                    return false
                },
            });
            return false;
        } else if (type == 'playerData') {
            layer.open({
                type: 1,
                skin:'prizeconfirm',
                content: false,
                area: ['30%', '20%'],
                maxWidth: '200px',
                shadeClose: true,
                btn: ['查看年龄分析', '区域分布', '玩家等级分析统计'],
                btn1: function (index, layero) {
                    layer.close(index);
                    jumpUrl('查看年龄分析', '/admin/PlayerData/ageAnalysis');
                    return false
                },
                btn2: function (index, layero) {
                    layer.close(index);
                    jumpUrl('区域分布', '/admin/PlayerData/regionalDistribution');
                    return false
                },
                btn3: function (index, layero) {
                    layer.close(index);
                    jumpUrl('玩家等级分析统计', '/admin/PlayerData/playerLevelAnalysis');
                    return false
                },
            });
            return false;
        } else if (type == 'currentBusiness') {
            url = '/admin/AssetData/currentBusiness'
        } else if (type == 'playerIncome') {
            url = '/admin/AssetData/playerIncome'
        } else if (type == 'goldNum') {
            layer.open({
                type: 1,
                skin:'prizeconfirm',
                content: false,
                area: ['30%', '20%'],
                maxWidth: '200px',
                shadeClose: true,
                btn: ['每日新增统计', '金币使用情况分析'],
                btn1: function (index, layero) {
                    layer.close(index);
                    jumpUrl('每日新增统计', '/admin/AssetData/goldCoinsAddedDaily');
                    return false
                },
                btn2: function (index, layero) {
                    layer.close(index);
                    jumpUrl('金币使用情况分析', '/admin/AssetData/analysisOfGoldCoinUsage');
                    return false
                },
            });
            return false;
        } else if (type == 'planGoldNum') {
            url = '/admin/AssetData/analysisOfGoldCoinUsage'
        } else if (type == 'integralNum') {
            layer.open({
                type: 1,
                skin:'prizeconfirm',
                content: false,
                area: ['30%', '20%'],
                maxWidth: '200px',
                shadeClose: true,
                btn: ['每日新增统计', '积分使用情况分析'],
                btn1: function (index, layero) {
                    layer.close(index);
                    jumpUrl('每日新增统计', '/admin/AssetData/integralCoinsAddedDaily');
                    return false
                },
                btn2: function (index, layero) {
                    layer.close(index);
                    jumpUrl('积分使用情况分析', '/admin/AssetData/analysisOfIntegralCoinUsage');
                    return false
                },
            });
            return false;
        } else if (type == 'recoveredMaterialsNum') {
            url = '/admin/AssetData/recoveredMaterials'
        } else if (type == 'historicalTransactions') {
            url = '/admin/TransactionData/historicalTransactions'
        } else if (type == 'proportionToBeSold') {
            url = '/admin/TransactionData/proportionToBeSold?action=view'
        } else if (type == 'giveGoldNum') {
            url = '/admin/TransactionData/giveGold'
        } else if (type == 'giveIntegralNum') {
            url = '/admin/TransactionData/giveIntegral'
        } else if (type == 'onlinePeople') {
            url = '/admin/PlatformData/onlinePeople'
        }else if (type == 'downloadInfo') {
            url = '/admin/PlatformData/downloadInfo'
        }
        jumpUrl(title, url);
    }

    function jumpUrl(title, url) {
        layer.open({
            type: 2,
            title: title,
            shadeClose: true,
            shade: 0.5,
            area: ['100%', '100%'],
            content: url,
            end: function () {
                location.reload();
            }
        });
    }
</script>
</body>
</html>
